﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SharedGenomics.Core
{
    public class TextFileReaderFileState : ITextFileReaderState
    {
        public TextFileReaderFileState(string filePath)
        {
            filePath.ThrowIfNull("filePath");
            this.FilePath = filePath;
        }

        public TextReader OpenReader()
        {
            return new StreamReader(this.FilePath);
        }

        private string FilePath { get; set; }
    }
}
